@charset "utf-8";
/**
 * @Created by kroyo on 2018/03/13
 * @category 品类弹窗
 */


@import 'mixincommon';


 //自定义checkbox
.category-wrap .check-wrap {
    display: inline-block;
    font-size: 14px;
    color: #333333;
    cursor: pointer;
    font-size: 0;
    margin-right: 10px;
    input{
        display: none;
    }
    label{
        display: block;
        width: 100%;
        font-weight: normal;
    }
    //选择框
    .check {
        position: relative;
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 1px solid #999999;
        border-radius: 2px;
        color: #fff;
        margin-right: 5px;
        cursor: pointer;
        vertical-align: -3px;
        overflow: hidden;
        &:after{
            position: absolute;
            top: 0;
            left: 0;
            content: " ";
            display: none;
            width: 100%;
            height: 100%;
            background: url(../../img/infor/check.png) no-repeat 50% 50%;
        }
    }
    //描述文字
    .check-text {
        cursor: pointer;
        font-size: 14px;
    }
    &:hover{
        .check {
            border-color: $acolor;
        }
        .check-text{
            color: $acolor;
        }
    }
    &.checked{
        .check {
            border:none;
            background-color: $acolor;
            &:after {
                display: inline-block;
            }
        }
    }
}

.category-wrap .radio-wrap{
    display: block;
}



//3.7 添加品类
.category-wrap{
    width: 1000px;
    height: 600px;
    background: #fff;
    padding:20px;
    color: #333333;
    .check-text{
        margin-bottom: 0;
    }
    h4{
        font-size: 16px;
        color: #333333;
        margin: 0;
    }
    .btn-close{
        position: absolute;
        top: 20px;
        right: 20px;
        width: 16px;
        height: 16px;
        color: $borcolor;
        font-size: 16px;
        cursor: pointer;
        @include transitions(.4s);
        &:hover{
            color: $acolor;
        }
    }
    .category{
        //单选按钮
        .radio-wrap{
            width: 100%;
            height: 100%;
            font-size: 0;
            label{
                display: inline-block;
                width: 142px;
                font-size: 14px;
                padding-left: 10px;
                vertical-align: middle;
                cursor: pointer;
                font-weight: normal;
            }
        }
        .radio-wrap:hover {
            .border {
                border-color: $acolor;
            }
            .check-text{
                color: $acolor;
            }
        }
        .radio-wrap.checked{
            .center {
                background-color: $acolor;
            }
            .border {
                border-color: $acolor;
            }
        }
        .radio_btn {
            position: relative;
            display: inline-block;
            width: 16px;
            height: 16px;
            line-height: 16px;
            vertical-align: middle;
            font-size: 0;
            background: transparent;
            cursor: pointer;
            input {
                position: relative;
                width: 100%;
                height: 100%;
                z-index: 99;
                opacity: 0;
                cursor: pointer;
            }
            span {
                display: inline-block;
                border-radius: 50%;
                -webkit-transition: .3s all;
                -moz-transition: .3s all;
                -ms-transition: .3s all;
                -o-transition: .3s all;
                transition: .3s all;
                transition: .3s all;
            }
            .center {
                position: absolute;
                top: 4px;
                left: 4px;
                width: 8px;
                height: 8px;
            }
            .border {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                border: 1px solid #999999;
            }
        }
        //多选按钮
        .check-wrap{
            display: block;
            .check{
                margin-right:10px;
            }
        }
        .disabled{
            .radio-wrap,.radio-wrap:hover{
                .border {
                    border-color: $sc !important;
                }
                .center{
                    background-color: $sc !important;
                }
                .check-text{
                    color: $sc !important;
                }
            }
            .check-wrap,.check-wrap:hover{
                .check-text{
                    color: $sc;
                }
                .check{
                    border-color: $sc;
                }
            }
        }
    }   
    //提示文字
    .category-text{
        display: none;
    }
    .search-wrap{
        position: relative;
        width: 100%;
        margin-top: 30px;
        margin-bottom: 20px;
        input{
            width: 100%;
            height: 40px;
            border: 1px solid #cccccc;
            padding:0 10px;
            @include borradius(4px);
        }
        //下拉列表
        .select_list{
            display: none;
            position: absolute;
            top: 42px;
            left: 0;
            width: 100%;
            max-height: 144px;
            border: 1px solid $borcolor;
            background-color: #ffffff;
            @include box_shadows(0,0,3px,0,rgba(0,0,0,.2));
            z-index: 2;
            overflow: hidden;
            .li{
                width: 100%;
                height: 36px;
                line-height: 36px;
                font-size: 14px;
                color: #7A7A7A;
                padding-left: 10px;
                background-color: #ffffff;
                cursor: pointer;
                &:hover,&.selected{     
                    background-color: #f2f2f2;
                    color: $acolor;
                }
            }
        } 
    } 
    .selectlist{
        height: 400px;
        overflow: hidden;
        &>div{
            height: 400px;
            border: 1px solid #cccccc;
            @include borradius(2px);
            overflow: hidden;
        }
        ul{
            width: 100%;
            min-height: 100%;
            padding:0 20px;
            overflow: hidden;
        }
        li{
            width: 100%;
            height: 40px;
            line-height: 40px;
            border-bottom: 1px solid #cccccc;
        }
    }
    .first{
        width: 200px;
    }
    .second{
        width: 240px;
        margin:0 10px;
        ul{
            padding: 0 18px;
        }
        .check-wrap{
            margin-right: 0;
        }
    }
    .third{
        width: 500px;
        padding:0 20px;
        &>div{
            width: 100%;
            font-size: 14px;
            border-bottom:1px solid #cccccc; 
        }
        p{
            color: #666666;
            margin:20px 0 10px;
        }
        .check-wrap{
            display: inline-block;
            float: left;
            height: 32px;
            line-height: 30px;
            margin-right: 20px;
            .check{
                vertical-align: -2px;
            }
        }
        .disabled,.disabled:hover{
            .check-text{
                color: $sc;
            }
            .check{
                border-color: $sc;
            }
        }
    }
    .btn-list{
        margin-top: 18px;
        text-align: right;
        font-size: 0;
        button{
            width: 72px;
            height: 36px;
            border:1px solid #CCCCCC;
            @include borradius(2px);
            font-size: 14px;
            color: #cccccc;
        }
        .btn-re{
            background: transparent;
            &:hover{
                color: $acolor;
                border-color: $acolor;
            }
        }
        .btn-conf{
            background: #eeeeee;
            margin-left: 20px;
            cursor: not-allowed;
        }
        .btn-conf.active{
            color: #fff;
            border: none;
            background: $acolor;
        }
    }
}




//添加提示文字
.category-wrap.tink-wrap{
    .search-wrap{
        margin-top: 20px;
        margin-bottom: 40px;
    }
    //提示文字
    .category-text{
        display: block;
        width: 100%;
        height: 50px;
        line-height: 50px;
        font-size: 14px;
        color: #333333;
        margin-top: -40px;
        .num{
            color: $acolor;
        }
    }
    .third{
        height: 366px !important;
    }
    .btn-list{
        margin-top: -10px;
    }
}








